data = [[
    <object>
      <no id="17001">不需要</no>
      <ask1 id="18001">位置</ask1>
      <ask2 id="18002">价格</ask2>
      <ask3 id="18003">配套</ask3>
      <ask4 id="18006">购买</ask4>
      <ask5 id="18004">贷款</ask5>
    </object>
]]
for id, val in string.gmatch(data, "id=\"(.-)\">(.-)</") do
	print("id:".. id .. ": " .. val)
end